home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWCommon / FWPriMem.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  906 b   |  32 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWPriMem.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWPRIMEM_H
  11. #define FWPRIMEM_H
  12.  
  13. #ifndef SLPRIMEM_H
  14. #include "SLPriMem.h"
  15. #endif
  16.  
  17. void *operator new(size_t size,void *p);
  18. void *operator new(size_t size);
  19. void  operator delete(void *p);
  20.  
  21. //----------------------------------------------------------------------------------------
  22. //    FW_BlockMove
  23. //----------------------------------------------------------------------------------------
  24.  
  25. template <class tType>
  26. inline void FW_BlockMove(const tType* source, tType* destination, int numberItems)
  27. {
  28.     FW_PrimitiveCopyMemory(source, destination, numberItems*sizeof(tType));
  29. }
  30.  
  31. #endif
  32.